
	 /**  
	 * Project Name:BaseFramework  
	 * File Name:UploadResult.java  
	 * Package Name:com.sg.fileupload.config  
	 * Date:2017年12月29日下午5:15:03 
	 *  
	*/  
	  
	package com.sg.fileService.entity;  

import java.util.ArrayList;
import java.util.List;

import com.sg.fileService.model.FileData;
	/**  
	 * ClassName:UploadResult <br/>  
	 * Function: 上传结果 <br/>  
	 * Reason:   上传结束后对报告上传结果,统计上传成功次数,失败次数及成功/失败名单 <br/>  
	 * Date:     2017年12月29日 下午5:15:03 <br/>  
	 * @author   Lwt  
	 * @version    
	 * @since    JDK 1.8  
	 * @see        
	 */
public class UploadResult {
	
	/**
	 * 成功上传个数
	 */
	private int successFileCount = 0;
	
	/**
	 * 失败文件个数
	 */
	private int failFileCount = 0;
	
	/**
	 * 上传失败原因列表
	 */
	private List<FailUploadReason> failFileDatas = new ArrayList<FailUploadReason>();
	
	/**
	 * 上传成功的文件数据数组
	 */
	private List<FileData> successFileDatas = new ArrayList<FileData>();

	//失败文件数据增加
	public void addFailFileData(FailUploadReason fileReason) {
		failFileCount++;
		failFileDatas.add(fileReason);
	}
	
	//成功文件数据增加
	public void addSuccessFileData(FileData fileData) {
		successFileCount++;
		successFileDatas.add(fileData);
	}

	public List<FailUploadReason> getFailFileDatas() {
		return failFileDatas;
	}

	public void setFailFileDatas(List<FailUploadReason> failFileDatas) {
		this.failFileDatas = failFileDatas;
	}

	public List<FileData> getSuccessFileDatas() {
		return successFileDatas;
	}

	public void setSuccessFileDatas(List<FileData> successFileDatas) {
		this.successFileDatas = successFileDatas;
	}

	public void setSuccessFileCount(int successFileCount) {
		this.successFileCount = successFileCount;
	}

	public void setFailFileCount(int failFileCount) {
		this.failFileCount = failFileCount;
	}

	public Integer getSuccessFileCount() {
		return successFileCount;
	}

	public void setSuccessFileCount(Integer successFileCount) {
		this.successFileCount = successFileCount;
	}

	public Integer getFailFileCount() {
		return failFileCount;
	}

	public void setFailFileCount(Integer failFileCount) {
		this.failFileCount = failFileCount;
	}

	
}
  
	